<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
    	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>编辑用户</title>
		<link href="${pageContext.request.contextPath }/css/bootstrap.min.css" rel="stylesheet">
	</head>
	<body>
		<div class="container">
			<form action="${pageContext.request.contextPath }/userAdmin_editSubmit.action" method="post" class="form-horizontal">
				<input type="hidden" name="uid" value="<s:property value="user.uid"/>">
				<fieldset>
					<legend>编辑用户</legend>
					<div class="form-group">
						<label class="control-label col-sm-2">用户名称</label>
						<div class="col-sm-8">
							<input name="username" type="text" class="form-control" value="<s:property value="user.username"/>"/>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2">密码</label>
						<div class="col-sm-8">
							<input name="password" type="password" class="form-control" value="<s:property value="user.password"/>"/>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2">状态</label>
						<div class="col-sm-8">
							<label class="radio-inline">
							  <input type="radio" name="state" id="inlineRadio2" value="1" <s:if test="user.state==1">checked</s:if> > 激活
							</label>
							<label class="radio-inline">
							  <input type="radio" name="state" id="inlineRadio1" value="0" <s:if test="user.state==0">checked</s:if> > 冻结
							</label>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2">邮箱</label>
						<div class="col-sm-8">
							<input name="email" type="email" class="form-control" value="<s:property value="user.email"/>" placeholder="jane@shop.com"/>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-2"></label>
						<div class="col-sm-8">
							<button type="submit" class="btn btn-default">确定</button>
						</div>
					</div>
				</fieldset>
			</form>
		</div>
	<script src="${pageContext.request.contextPath }/js/jquery-1.11.1.js"></script>
    <script src="${pageContext.request.contextPath }/js/bootstrap.min.js"></script>
	</body>
</html>
